3.260 \(\int \tan (x) \sqrt{a+a \tan ^2(x)} \, dx\)

Optimal. Leaf size=10 \[ \sqrt{a \sec ^2(x)} \]

[Out]

Sqrt[a*Sec[x]^2]

________________________________________________________________________________________

Rubi [A]  time = 0.0431939, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3657, 4124, 32} \[ \sqrt{a \sec ^2(x)} \]

Antiderivative was successfully verified.

[In]

Int[Tan[x]*Sqrt[a + a*Tan[x]^2],x]

[Out]

Sqrt[a*Sec[x]^2]

Rule 3657

Int[(u_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> Int[ActivateTrig[u*(a*sec[e + f*x]^2)^p]
, x] /; FreeQ[{a, b, e, f, p}, x] && EqQ[a, b]

Rule 4124

Int[((b_.)*sec[(e_.) + (f_.)*(x_)]^2)^(p_.)*tan[(e_.) + (f_.)*(x_)]^(m_.), x_Symbol] :> Dist[b/(2*f), Subst[In
t[(-1 + x)^((m - 1)/2)*(b*x)^(p - 1), x], x, Sec[e + f*x]^2], x] /; FreeQ[{b, e, f, p}, x] &&  !IntegerQ[p] &&
 IntegerQ[(m - 1)/2]

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rubi steps

\begin{align*} \int \tan (x) \sqrt{a+a \tan ^2(x)} \, dx &=\int \sqrt{a \sec ^2(x)} \tan (x) \, dx\\ &=\frac{1}{2} a \operatorname{Subst}\left (\int \frac{1}{\sqrt{a x}} \, dx,x,\sec ^2(x)\right )\\ &=\sqrt{a \sec ^2(x)}\\ \end{align*}

Mathematica [A]  time = 0.0088662, size = 10, normalized size = 1. \[ \sqrt{a \sec ^2(x)} \]

Antiderivative was successfully verified.

[In]

Integrate[Tan[x]*Sqrt[a + a*Tan[x]^2],x]

[Out]

Sqrt[a*Sec[x]^2]

________________________________________________________________________________________

Maple [A]  time = 0.023, size = 11, normalized size = 1.1 \begin{align*} \sqrt{a+a \left ( \tan \left ( x \right ) \right ) ^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*tan(x)^2)^(1/2)*tan(x),x)

[Out]

(a+a*tan(x)^2)^(1/2)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \tan \left (x\right )^{2} + a} \tan \left (x\right )\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*tan(x)^2)^(1/2)*tan(x),x, algorithm="maxima")

[Out]

integrate(sqrt(a*tan(x)^2 + a)*tan(x), x)

________________________________________________________________________________________

Fricas [A]  time = 1.31103, size = 30, normalized size = 3. \begin{align*} \sqrt{a \tan \left (x\right )^{2} + a} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*tan(x)^2)^(1/2)*tan(x),x, algorithm="fricas")

[Out]

sqrt(a*tan(x)^2 + a)

________________________________________________________________________________________

Sympy [A]  time = 0.671388, size = 10, normalized size = 1. \begin{align*} \sqrt{a \tan ^{2}{\left (x \right )} + a} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*tan(x)**2)**(1/2)*tan(x),x)

[Out]

sqrt(a*tan(x)**2 + a)

________________________________________________________________________________________

Giac [A]  time = 1.1183, size = 14, normalized size = 1.4 \begin{align*} \sqrt{a \tan \left (x\right )^{2} + a} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*tan(x)^2)^(1/2)*tan(x),x, algorithm="giac")

[Out]

sqrt(a*tan(x)^2 + a)